<?php
namespace app\admin\validate;
use think\Validate;

class Article extends Validate{

    protected $rule = [
        'title' => 'require|max:100|unique:article',
        'keywords' => 'require'
    ];

    protected $message = [
        'title.require' => '标题名称不能为空',
        'title.max' => '栏目名称最多不能超过100个字符',
        'title.unique' => '标题名称已存在！',

        'keywords.require' =>'关键字不能为空'
    ];
}